package eg.com.iti.common.exception;

public class BaseException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4487579186879702379L;

	private int code;
	
	public BaseException(int code) {
		this.code = code;
	}

	public BaseException(int code, String arg0) {
		super(arg0);
		this.code = code;
	}

	public BaseException(int code, Throwable arg0) {
		super(arg0);
		this.code = code;
	}

	public BaseException(int code, String arg0, Throwable arg1) {
		super(arg0, arg1);
		this.code = code;
	}
	
	public int getCode() {
		return code;
	}

}
